import  { defineStore } from 'pinia';

import axios from '../axios/axiosInstance.js'

export const useLoginStateStore = defineStore('loginstate', {
  state: function (){ //定义全局可访问的数据
	  return {
		  loginJwt:'',//存储登录用户的JWT加密串，用于和后交互时
		  // ，axios拦截器可取出该加密串传递给端
		  loginUserName:'',//存储当前登录用户的用户登录的num
		}
	},
	getters:{
	  strongUserName:function (state){
		  return state.loginUserName

	  }
	}
})

